/**
 * 通过公司分组的页面
 * 2025-11-03 20:35:02 tzj
 * */
import withBasePage from "../BaseComponent/withBasePage";
import {mrhzApi} from "../../services/basic";
import Dictionary from "../../services/dictionary";
import React, {Component} from "react";
import {Modal} from "antd";
import CgTbl from "./CgTbl";

const tblRef = React.createRef()

export default class CompanyGroup extends Component {
    constructor(props) {
        super(props);
        this.state = {
            visible: false,
        }
    }

    showModal = (record, dataForm) => {

        this.setState({
            visible: true,
        }, () => {
            tblRef.current.form.dataForm = {
                ...dataForm,
                lxr: record.gh,
                zw: null
            }

            tblRef.current.queryDataList()
        })
    }

    handleCancel = () => {
        this.setState({
            visible: false,
        })
    }

    render() {
        return (
            <Modal width='1400px' title='各公司详情' visible={this.state.visible} onCancel={this.handleCancel}
                   footer={null}>
                <CgTbl ref={tblRef}/>
            </Modal>
        )
    }
}